<!DOCTYPE html>
<html>
<head>
<jsp:include page="../include/header.jsp" />
<title>万发娱乐</title>
<meta name="keywords" content="${info.keywords}" />
<meta name="description" content="${info.description}" />
</head>
<body ng-controller="LayoutCtrl">
<jsp:include page="../include/navbar.jsp" />
<div class="banner"> </div>
<div id="content">
  <div class="wrapper">
    <div id="un-lobby" class="clearfix" ng-controller="LobbiesCtrl">
      <aside>
        <ul>
		<c:forEach var="info" items="${infoData.top10}">
        	<li><a href="info/${info.id}.html" title="${info.title}">${info.title}</a></li>
        </c:forEach>
        </ul>
        <div class="onlinechat" ng-click="lineChatClick()"></div>
      </aside>
      <article>
        <div class="text">
          <h1>${infoData.info.title}</h1>
          <hr>
          <div class="info">
          	来源：${infoData.info.source} &nbsp;&nbsp; 
          	时间：<fmt:formatDate value="${infoData.info.crtTime}" pattern="yyyy-MM-dd hh:mm"/> &nbsp;&nbsp; 
          	点击：<span id="viewCount">${infoData.info.viewCount}</span></div>
          <hr>
		  <div class="articledesc">${infoData.info.abstraction}</div>
 		  <hr>
 		  <div class="articleContent">
          ${infoData.info.contentUnEscaped}
          </div>
          <hr>
          <br>
          上一篇：<c:choose><c:when test="${infoData.prev ne null}"><a href="info/${infoData.prev.id}.html">${infoData.prev.title}</a></c:when><c:otherwise>没有了</c:otherwise></c:choose>
          <br>
          下一篇：<c:choose><c:when test="${infoData.next ne null}"><a href="info/${infoData.next.id}.html">${infoData.next.title}</a></c:when><c:otherwise>没有了</c:otherwise></c:choose>
        </div>
      </article>
    </div>
  </div>
</div>
<jsp:include page="../include/footer.jsp" />
</body>
</html>
<script>
$.ajax({
	url: 'info/viewCount/${infoData.info.id}',
	type: 'post',
	success: function(count) {
		$('#viewCount').html(count);
	},
	error: function(){
		//
	}
})
</script>